home *** CD-ROM | disk | FTP | other *** search
/ Practical Algorithms for Image Analysis / Practical Algorithms for Image Analysis.iso / TARFILE.GZ / tarfile / libtiff / contrib / mac-mpw / tools.make < prev    next >
Encoding:
Text File  |  1999-09-11  |  3.5 KB  |  139 lines

  1. #
  2. # Tag Image File Format Library
  3. #
  4. # Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994 Sam Leffler
  5. # Copyright (c) 1991, 1992, 1993, 1994 Silicon Graphics, Inc.
  6. # Permission to use, copy, modify, distribute, and sell this software and 
  7. # its documentation for any purpose is hereby granted without fee, provided
  8. # that (i) the above copyright notices and this permission notice appear in
  9. # all copies of the software and related documentation, and (ii) the names of
  10. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  11. # publicity relating to the software without the specific, prior written
  12. # permission of Stanford and Silicon Graphics.
  13. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  14. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  15. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  16. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  17. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  18. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  19. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  20. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  21. # OF THIS SOFTWARE.
  22. #
  23.  
  24. #
  25. # Makefile for Mac using MPW 3.2.3 and MPW C 3.2.4
  26. #
  27. COPTS = -model far
  28.  
  29. .c.o %c4 .c
  30.     {C} {COPTS} {CFLAGS} -s {Default} {DepDir}{Default}.c -o {TargDir}{Default}.c.o
  31.  
  32. RM = delete -y -i
  33.  
  34. CONF_LIBRARY= %b6
  35.     -d USE_CONST=0 %b6
  36.     -d BSDTYPES
  37. NULL=
  38.  
  39. IPATH= -I ::libtiff
  40.  
  41. CFLAGS=    -w -m {IPATH} {CONF_LIBRARY}
  42.  
  43. LIBPORT= ::port:libport.o
  44.  
  45. LOptions= -model far -w -srt -d -c 'MPS ' -t MPST
  46.  
  47. LIBTIFF= ::libtiff:libtiff.o
  48.  
  49. LIBS=    {LIBTIFF} %b6
  50.     {LIBPORT} %b6
  51.     "{CLibraries}"CSANELib.o  %b6
  52.     "{CLibraries}"Math.o  %b6
  53.     "{CLibraries}"StdClib.o  %b6
  54.     "{Libraries}"Stubs.o  %b6
  55.     "{Libraries}"Runtime.o  %b6
  56.     "{Libraries}"Interface.o  %b6
  57.     "{Libraries}"ToolLibs.o  %b6
  58.     {NULL}
  59.  
  60. SRCS= %b6
  61.     pal2rgb.c %b6
  62.     ras2tiff.c %b6
  63.     thumbnail.c %b6
  64.     tiff2bw.c %b6
  65.     tiff2ps.c %b6
  66.     tiffcmp.c %b6
  67.     tiffcp.c %b6
  68.     tiffdither.c %b6
  69.     tiffdump.c %b6
  70.     tiffinfo.c %b6
  71.     tiffmedian.c %b6
  72.     {NULL}
  73.     
  74. MACHALL=ras2tiff
  75.  
  76. ALL= %b6
  77.     tiffinfo  %b6
  78.     tiffcmp  %b6
  79.     tiffcp  %b6
  80.     tiffdump  %b6
  81.     tiffmedian  %b6
  82.     tiff2bw  %b6
  83.     tiffdither  %b6
  84.     tiff2ps  %b6
  85.     pal2rgb  %b6
  86.     gif2tiff  %b6
  87.     {MACHALL}
  88.  
  89. all %c4 {ALL}
  90.  
  91. tiffinfo %c4 tiffinfo.c.o {LIBTIFF} 
  92.     Link {LOptions} tiffinfo.c.o {LIBS} -o tiffinfo
  93.     
  94. tiffcmp %c4 tiffcmp.c.o {LIBTIFF}
  95.     Link {LOptions} tiffcmp.c.o {LIBS} -o tiffcmp
  96.     
  97. tiffcp %c4 tiffcp.c.o {LIBTIFF}
  98.     Link {LOptions} tiffcp.c.o {LIBS} -o tiffcp
  99.     
  100. tiffdump %c4 tiffdump.c.o {LIBTIFF}
  101.     Link {LOptions} tiffdump.c.o {LIBS} -o tiffdump 
  102.     
  103. tiffmedian %c4 tiffmedian.c.o {LIBTIFF}
  104.     Link {LOptions} tiffmedian.c.o {LIBS} -o tiffmedian
  105.     
  106. tiff2ps %c4 tiff2ps.c.o {LIBTIFF}
  107.     Link {LOptions} tiff2ps.c.o {LIBS} -o tiff2ps
  108.     
  109. # junky stuff...
  110. # convert RGB image to B&W
  111. tiff2bw %c4 tiff2bw.c.o {LIBTIFF}
  112.     Link {LOptions} tiff2bw.c.o {LIBS} -o tiff2bw
  113.     
  114. # convert B&W image to bilevel w/ FS dithering
  115. tiffdither %c4 tiffdither.c.o {LIBTIFF}
  116.     Link {LOptions} tiffdither.c.o {LIBS} -o tiffdither
  117.     
  118. # GIF converter
  119. gif2tiff %c4 gif2tiff.c.o {LIBTIFF}
  120.     Link {LOptions} gif2tiff.c.o {LIBS} -o gif2tiff
  121.     
  122. # convert Palette image to RGB
  123. pal2rgb %c4 pal2rgb.c.o {LIBTIFF}
  124.     Link {LOptions} pal2rgb.c.o {LIBS} -o pal2rgb
  125.     
  126. # Sun rasterfile converter
  127. ras2tiff %c4 ras2tiff.c.o {LIBTIFF}
  128.     Link {LOptions} ras2tiff.c.o {LIBS} -o ras2tiff
  129.  
  130. # generate thumbnail images from fax
  131. thumbnail %c4 thumbnail.c.o {LIBTIFF}
  132.         Link {LOptions} thumbnail.c.o {LIBS} -o thumbnail
  133.     
  134. clean %c4
  135.     {RM} {ALL} %c5.c.o ycbcr
  136.